package lp2.projeto.testes;

import lp2.projeto.classes.Musica;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
 * @author Bruna de Oliveira Barbosa - 21115494
 * @author Caynan Victor Ladim
 * @author Daniella Lima de Carvalho - 21111069
 * @author Matheus Emanuel
 *
 */
public class TestaMusica {

	private Musica musica;
	
	@Before public void criaMusica(){
		musica = new Musica("Blow me", "Unknown", "P!nk", "2012", "Pop", "./Musicas/Blow_me.mp3");
	}
	@Test public void testaMusica(){
		Musica musica2 = new Musica("Blow me", "Unknown", "P!nk", "2012", "Pop", "./Musicas/Blow_me.mp3");
		
		Assert.assertEquals("Blow me", musica.getTitulo());
		Assert.assertEquals("Unknown", musica.getAlbum());
		Assert.assertEquals("P!nk", musica.getArtista());
		Assert.assertEquals("2012", musica.getAnoDeGravacao());
		Assert.assertEquals("Pop", musica.getGenero());
		Assert.assertEquals("./Musicas/Blow_me.mp3", musica.getLocalizacao());
		Assert.assertTrue(musica.equals(musica2));
				
	}
}
